package org.example.entity;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;

public class StudentAOP {
    public void afterStudentAOP(JoinPoint point) {

        System.out.println("After student AOP" + point.getArgs()[0]);
    }

    public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
        System.out.println("方法开始之前");
        String arg = joinPoint.getArgs()[0] + "伞兵一号";
        Object value = joinPoint.proceed(new Object[]{arg});
        System.out.println("方法执行完成，结果为："+value);
        return value;
    }

}
